package ooday05;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class EnumDemo {
    public static void main(String[] args) {
        Season[] season= Season.values();
        for(int i=0;i<season.length;i++){
            System.out.println(season[i]);
            System.out.println(season[i].getSeasonName());
            System.out.println(season[i].getSeasonDesc());
        }




        Season s=Season.SPRING;
        System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
        switch (s){
            case SPRING:
                System.out.println("天气"+s.getSeasonDesc()+"去逛公园");
                break;
            case SUMMER:
                System.out.println("天气"+s.getSeasonDesc()+"在家吹空调");
                break;
            case AUTUMN:
                System.out.println("天气"+s.getSeasonDesc()+"出门打羽毛球");
                break;
            case WINTER:
                System.out.println("天气"+s.getSeasonDesc()+"窝在被窝里");
                break;
        }
    }




}
